﻿ <%@ Page Language="C#" MasterPageFile="~/Views/Shared/CustomTab.Master" Inherits="System.Web.Mvc.ViewPage<WFBot.Framework.Domain.Visitor>" %>

<asp:Content runat="server" ContentPlaceHolderID="HeadContext">
    <link href="<%= Url.Content("~/WebCallr/webcallr.css") %>" rel="stylesheet" type="text/css" />
    <script src="<%= Url.Content("~/Scripts/jquery-1.4.1.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/WebCallr/refresher.js") %>" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {
            refresher.init('<%= ViewData["userId"].ToString() %>');
        });

    </script>
</asp:Content>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">
    <div>
        <h1>Ziyaretçi Geçmişi [<a href="/communicator/history?userid=<%=ViewData["userId"].ToString() %>">Yenile</a>]</h1>

        <table border="0" cellpadding="0" cellspacing="0">
            
            <% foreach (var response in ViewData.Model.Responses) { %>

                <tr>
                    <td class="question"><%= response.Question.Text %></td>
                </tr>
                <tr>
                    <td class="answer"><%= response.Answer %></td>
                </tr>
                   
            <% } %>

        </table>
    </div>
</asp:Content>
